package com.cloud.basic.Advance.Design.SingletonPattern;

/**
 * @program: basic
 * @description: 饿汉模式
 * @author: Cloud
 * @create: 2022/2/23 15:27:57
 */
public class Singleton1 {

    public static Singleton1 singleton1 = new Singleton1();

    public Singleton1() {
    }

    public static Singleton1 getInstance() {
        return singleton1;
    }
}
